<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>变量类型</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script type="text/javascript">
    var str = 'hello world!';
    var num = 888;
    var bool = true;
    var arr = ['a','b','c','d'];
    var st ;
    var nu = null;
    document.write('string类型是:' + typeof str + '<br />');
    document.write('number类型是:' + typeof num + '<br />');
    document.write('bool类型是:' + typeof bool + '<br />');
    document.write('array类型是:' + typeof arr + '<br />');
    document.write('st类型是:' + typeof st + '<br />');
    document.write('null类型是:' + typeof nu);
</script>

<style type="text/css">
</style>
</head>
    <body>
    </body>
</html>